package restric_visit_protect;

import restric_visit_protect.pagage1.SubclassA;
import restric_visit_protect.pagage2.SubclassB;

/**
 * Description: 测试类
 *
 * @author code-worker
 * @date 2021/10/17 9:26
 */
public class Test {
    public static void main(String[] args) {
        SubclassA subclassA = new SubclassA();
        subclassA.setLength(10);
        System.out.println(subclassA);
        SubclassB subclassB = new SubclassB();
        subclassB.setLength(20);
        System.out.println(subclassB);
    }
}
